import request from "/@/utils/request"
/**
 * 获取五金料卡
 * @param data
 */
export function queryBarcode(data?: any) {
    return request({
        url: '/wms/barcode/GetWmsBarcodeList',
        method: 'post',
        data: data
    })
}
/**
 * 获取打印机列表
 * @param data
 */
export function getPrinter(data?: any) {
    return request({
        url: '/wms/getValueSet/GetDicItemByCode',
        method: 'post',
        data: data
    })
}
/**
 * 获取五金标签号
 * @param data
 */
export function getSpBarcode(data?: any) {
    return request({
        url: '/wms/commonBarcode/GetNewBarcode',
        method: 'post',
        data: data
    })
}
/**
 * 获取五金仓库
 * @param data
 */
export function getSpWarehouse(data?: any) {
    return request({
        url: '/wms/warehouse/GetWJWarehouse',
        method: 'post',
        data: data
    })
}
/**
 * 获取五金物料
 * @param data
 */
export function getSpMaterials(data?: any) {
    return request({
        url: '/wms/material/GetWJMaterials',
        method: 'post',
        data: data
    })
}
/**
 * 获取五金物料
 * @param data
 */
export function getPagedSpMaterials(data?: any) {
    return request({
        url: '/wms/material/GetPagedWJMaterials',
        method: 'post',
        data: data
    })
}
/**
 * 获取五金货位
 * @param data
 */
export function getSpLocations(data?: any) {
    return request({
        url: '/wms/location/GetWJLocations',
        method: 'post',
        data: data
    })
}
/**
 * 新增五金标签
 * @param data
 */
export function createSPBarcode(data?: any) {
    return request({
        url: '/wms/barcode/WJBarocdeAdd',
        method: 'post',
        data: data
    })
}
/**
 * 打印标签
 * @param data
 */
export function barcodePrint(data?: any) {
    return request({
        url: '/wms/commonbarcode/BarcodePrint',
        method: 'post',
        data: data
    })
}
/**
 * 导入五金料卡
 * @param data
 */
export function importSp(data?: any) {
    return request({
        url: '/wms/barcode/ImportSp',
        method: 'post',
        data: data
    })
}